<template>
  <div class="home">
    <div class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide">{{$t('hello')}}</div>
        <component-demo class="swiper-slide"></component-demo>
        <component-demo-two class="swiper-slide"></component-demo-two>
      </div>

      <div class=""></div>
    </div>
  </div>
</template>

<script>
import Swiper from 'swiper';
import componentDemo from '../../components/component-demo';
import componentDemoTwo from '../../components/component-demo-two';

export default {
  name: 'home',
  components: {componentDemo, componentDemoTwo},
  data() {
    return {
      swiper: null
    }
  },
  mounted() {
    //  初始化swiper
    this.swiper = new Swiper( '.swiper-container', {
      direction: 'vertical', // 垂直切换选项
      mousewheel: true
    } )

  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.home {
  height: 100%;

  .swiper-container {
    width: 100%;
    height: 100%;
  }
}

</style>